#-*- coding: utf-8 -*-
__author__ = 'lieber'

import re
import jsonpath
import jsonpath
from utils.myrequest import MyRequest
import json
#resp_json = {"code":0,"data":{"tokenName":"adminToken","tokenValue":"eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE1NDYxMzc0NjUsInN1YiI6IntcImlkXCI6XCI2NjcwMzNcIixcIm5hbWVcIjpcIuadjuWNmjA1XCJ9IiwiaXNzIjoia3lleHByZXNzLnRyYW5zaXRDZW50ZXIifQ.itdROs6_d_3U8mGK_PpZWbJjnsSn50A-EzNbw6zZ0ElbbC7pKeL-i5lzZZ5ulUlpWyks71Yst8Wszv799GzIXg","userId":"667033","userName":"李博05"},"msg":"OK","success":True}
#value = jsonpath.jsonpath(resp_json, '$.data.tokenName')
#print(value)


funPattern = re.compile(r"(\_\_[a-zA-Z_]+[0-9a-zA-Z_]*\([0-9a-zA-Z_,]*\))")
kty = {"username":"__random(6,true)","__funadd(args,args2)":""}
a = funPattern.findall(str(kty))
print(a)